<?php

namespace App\Model;

use Hyperf\Database\Model\Relations\HasMany;

/**
 * App\PaymentOrder
 *
 * @property int $id
 * @property string $card_no 卡号
 * @property float $amount 余额
 * @property float $total 累计金额
 * @property int $status 状态
 */
class NfcCard extends Model
{
    public bool $timestamps = true;
    protected ?string $table = 'nfc_card';



    protected array $fillable = [
        'card_no', 'amount', 'total', 'status'
    ];

    protected array $casts = [

    ];


    public function order():HasMany{

        return $this->hasMany(CardOrder::class, 'card_no', 'card_no');
    }

}
